package controllers;

import java.text.SimpleDateFormat;
import java.util.Date;

import models.Resume;
import play.mvc.Controller;

public class Application extends Controller {

    public static void index() {
        render();
    }
    
    public static void pass(){
    	render();
    	if(new SimpleDateFormat("yyyy-MM-dd").toString().compareTo("2015-10-1")>0){
    		end();
    	}else{
    		render();    		
    	}
    }
    
    public static void end(){
    	render();
    }
    
    public static void postResume(
    		String name,
    		String sex,
    		String phone,
    		String email,
    		String grade,
    		String position,
    		String exprience,
    		String evaluation){
    	
    	Resume resume=new Resume(name,email,phone,sex,grade,position,exprience,evaluation);
    	resume.save();
    	render();
    }

}